import ArrayP.Array;

public class main {

    private static final main INSTANCE=new main();
    public main(){}
    public static main getInstance(){
        return INSTANCE;
    }

    public static void main(String[] args){

        for (int i = 0; i < 100; i++) {
            new Thread(()->{
                System.out.println(main.INSTANCE.hashCode());
            }).start();
        }

       /* Array<Integer> objectArray = new Array<>();
        for (int i=0;i<10;i++){
            objectArray.addLast(i);
        }
        System.out.println(objectArray);

        objectArray.add(1,100);
        System.out.println(objectArray);

        objectArray.addFirst(-1);
        System.out.println(objectArray);

        objectArray.remove(2);
        System.out.println(objectArray);

        objectArray.removeElement(3);
        System.out.println(objectArray);

        objectArray.removeFirst();
        System.out.println(objectArray);

        for (int i=0;i<4;i++){
            objectArray.removeFirst();
            System.out.println(objectArray);
        }*/
    }
}
